
### PackageManager Description Start ###
# 1 仅仅用来更新podspec.
# 2 前提是用户已经更新了pod,并打好了标签.
### VersionManager Description End  ###


### Input Start ###
# 所有的需要用户配置的信息
# 工程的info.plist文件路径
g_projectDirPath="/Users/gikkiares/Desktop/PP_PersonalProject/MP01_MySoftwareProject/Mp0106_MyLibProject/MP0601_iOS/01_JsOUtilitySdkProject/05_Make/JsOcUtilitySdkDemo/JsOcUtilitySdkDemo"
### Input End  ###


### Variable Start ### 
#程序需要用到的变量
# Change log中指定的版本.
newVersion=""
newBuildNumber=""
# 改动点.
change=""
# plist文件中指定的版本
currentVersion=""
currentBuildNumber=""

# 上传结果
uploadResult=""

buildDir=""
outArchivePath=""
# 输出文件的目录
exportDirPath=""
plistFilePath=""
ipaPath=""

### Variable End ###
function main {
	cd ${g_projectDirPath}
	pod trunk push JsOcUtilitySdk.podspec  --allow-warnings --verbose
}

main
# getPodGitLocalLatestTag
# sed -E -i "" "s/^(.*s\.version.*=).*$/\1 \"${newVersion}\"/" ${podspecPath}
# sed -E -i "" "s/^(.*spec\.version.*=).*$/\1 \"1.0.0\"/" ${podspecPath}

